package com.cyclinggle.cloud;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.cyclinggle.cloud.HelloFeignService;

@RestController
public class HelloFeignController {
	
	@Autowired
	private HelloFeignService helloFeignService;
	
	@GetMapping("/search/github")
	public String search(@RequestParam("param") String param) {
		return helloFeignService.search(param);
	}
}
